Configure the OSPF cost associated with this interface and advertised in router link advertisements.
default ip ospf cost
ip ospf cost <0-65535>
ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} cost <0-65535>
Identifies the slot and port in one of the following formats:
a single slot and port (slot/port)
a range of slots and ports (slot/port-slot/port)
a series of slots and ports (slot/port,slot/port,slot/port)
all ports on the same slot (slot/all)
all ports on the switch (all)
The default is 0.
GigabitEthernet Interface Configuration